/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helper.tx.tta;

import java.io.Serializable;

/**
 *
 * @author Lu Xiaodi
 */
public class Helper_MDSCluster implements Serializable, Comparable {

    String country;
    String ageGroup;
    Long number;

    public Helper_MDSCluster() {
    }

    public Helper_MDSCluster(String country, String ageGroup, Long number) {
        this.country = country;
        this.ageGroup = ageGroup;
        this.number = number;
    }

    public String getAgeGroup() {
        return ageGroup;
    }

    public void setAgeGroup(String ageGroup) {
        this.ageGroup = ageGroup;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }
    
    public String getDescription(){
        return this.country + "," + this.getAgeGroup();
    }

    @Override
    public int compareTo(Object o) {
        if (!(o instanceof Helper_MDSCluster)) {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        return this.getNumber().longValue() >= ((Helper_MDSCluster) o).getNumber().longValue() ? 1 : -1;
    }
}
